package com.oauth.expression;

import org.springframework.security.core.Authentication;
import org.springframework.security.core.GrantedAuthority;
import org.springframework.security.core.authority.SimpleGrantedAuthority;
import org.springframework.security.core.userdetails.UserDetails;
import org.springframework.stereotype.Service;

import javax.servlet.http.HttpServletRequest;
import java.util.Collection;
@Service
public class MyPermission {
    public boolean hasPermission(HttpServletRequest request, Authentication authentication) {
        System.out.println(99);
        System.out.println(request);
        System.out.println(authentication);
        return false;
    }
}
